# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-azure-mgmt-web
_pkgname=azure-mgmt-web
pkgver=9.0.0
pkgrel=1
pkgdesc='Microsoft Azure Web Apps Management Client Library for Python.'
arch=('any')
url='https://pypi.org/project/azure-mgmt-web/#files'
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.zip")
sha512sums=('7209e07f1065f5dbec53c2286e0c44e8fbcd7d809505284251f3d475fbc246e0373e59e08a14f259d4736c325ae7a207f9aa435007c1c102e582fbb4db10ad0b')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
    --skip-build
}

